package com.xja.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author zcy
 * @create 2022-05-05 19:13
 */
/*
* 订单表
* */
public class Indent {
    private Integer indentId;
    private Integer userId;
    private Integer roomId;
    private Date checkTime;
    //入住天数
    private Integer duratiom;
    private String remark;

    public Indent(Integer indentId, Integer userId, Integer roomId, Date checkTime, Integer duratiom, String remark) {
        this.indentId = indentId;
        this.userId = userId;
        this.roomId = roomId;
        this.checkTime = checkTime;
        this.duratiom = duratiom;
        this.remark = remark;
    }

    public Indent(Integer userId, Integer roomId, Date checkTime, Integer duratiom, String remark) {
        this.userId = userId;
        this.roomId = roomId;
        this.checkTime = checkTime;
        this.duratiom = duratiom;
        this.remark = remark;
    }

    public Indent() {
    }

    public Integer getIndentId() {
        return indentId;
    }

    public void setIndentId(Integer indentId) {
        this.indentId = indentId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public Integer getDuratiom() {
        return duratiom;
    }

    public void setDuratiom(Integer duratiom) {
        this.duratiom = duratiom;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
        String format = sdf.format(checkTime);
        return "Indent{" +
                "indentId=" + indentId +
                ", userId=" + userId +
                ", roomId=" + roomId +
                ", checkTime=" + format +
                ", duratiom=" + duratiom +
                ", remark='" + remark + '\'' +
                '}';
    }
}
